<!DOCTYPE html>
<html>
<head>
    <meta content="width=device-width" name="viewport"/>
    <title>WindowEvent</title>
</head>
<body>
<input onclick="OpenNewWindow()" type="button" value="新窗口中打开网页">
<script type="text/javascript">
    function OpenNewWindow()
    {
        var txt = '打开的窗口666';
        let openedWindow = window.open("about:blank", "", "location=no,status=no,scrollvars=no");
        openedWindow.document.write("<p>" + "<br><br>" + txt.fontsize(10) + "</p>");
        openedWindow.focus();
    }
</script>
</body>
</html>